<?php
/**
 * Date: 2024.8
 * Author: kahn
 * 用户信息
 */
use service\uc\UserService;
use config\Response;
use models\uc\UserModel;

class ProfileController extends Controller
{
    /**
     * 手机号注册/登录获取验证码
     */
    function getAction(): void
    {
        $data = UserService::getProfile($this->userId);
        if(!$data){
            $this->_response(Response::SYSTEM_ERROR);
        }

        $this->_response(Response::SUCCESS, $data);

    }
}